//
//  WordsView+JR.m
//  KidReading
//
//  Created by linziyuan on 16/3/25.
//  Copyright © 2016年 刘赞黄Telen. All rights reserved.
//

#import "WordsView+JR.h"
#import "ConstDefine.h"
@implementation WordsView (JR)

- (void)statistical_clickOnWord {
//    if (fieldView.isShow)[UMSAgent postEvent:@"Page_getword_clk_word" label:@"whenIsShowing"];
//    else [UMSAgent postEvent:@"Page_getword_clk_word" label:@"whenIsUnshow"];
    [NSObject msgToClassName:@"TLMobStat" menthed:@"logEvent:eventLabel:" refs:@[RE_main,@"取词_笔画"] needReturnValue:NO];
}

- (void)statistical_strokeWords:(NSString *)text {
    [[DBHelper shareInstance] addReadInfo_pageWord:self.currentBookId pageIndex:self.currentPage_C type:RType_graph word:text];
}

- (void)statistical_hztshow:(NSString*)word{
    [[DBHelper shareInstance] addReadInfo_pageWord:self.currentBookId pageIndex:self.currentPage_C type:RType_hanzt word:word];
}

- (void)statistical_soundplay {
//    [UMSAgent postEvent:@"Page_getword_clk_speaker" label:[NSString stringWithFormat:@"%@_%@",self.bookName,lable_keyWords.text]];
    
    //阅读统计
    [[DBHelper shareInstance] addReadInfo_pageWord:self.currentBookId pageIndex:self.currentPage_C type:RType_audio word:lable_keyWords.realWords];
    //
    [NSObject msgToClassName:@"TLMobStat" menthed:@"logEvent:eventLabel:" refs:@[RE_main,@"取词_播放"] needReturnValue:NO];
}

@end
